#!/usr/bin/env bash


clean(){
  rm -f a.out
}

compile(){
  gcc contacts.c
}

run_(){
  echo "run----------------"
  ./a.out "$@"
  echo "complete----------"
}

case "$1" in
  clean)
    clean;;
  compile)
    compile;;
  run)
    shift;
    # run_ add "add name" "add company" "12345678" "add@126.com";;
    # run_ edit 0 "edit name" "edit company" "12345678" "edit@126.com";;
    #run_ del;;
    run_ select 1;;
esac


